<?php
function get_member_id($user)
  {
    connect();
    $query="Select member_id from member where username='$user'";
    $result=exec_sql_query($query);
	$row = mysql_fetch_assoc($result); 
	return $row['member_id']; 
	disconnect();	
  }
?>